#include <stdio.h>

int fact_while(int n){
	int result=1;
	while(n>1){
		result*=n;
		n=n-1;
	}
	return result;
}

int main(){
	int n=8,t;
	t=fact_while(n);
}
